#ifndef CCVIDECLIENT_H
#define CCVIDECLIENT_H
#include"CCStreamDefine.h"
#include"CCThread.h"


class CCVideoClient
{
private:
    bool m_bconnected;
    int m_sockfd;
    static bool m_bKeepAlive;
    pthread_mutex_t m_recvMutex;
    pthread_mutex_t m_sendMutex;
private:
    static void ClientExitSignalProcess(int num);
    static void doWaitConnectThread(long long num);
    static void startRecvStreamThread(long long num);
    void RunWaitConnect();
    void closeClientSocket();
    void RunRecvAVStream();
    bool recvSocketData(char* pbuff,unsigned int length);
    bool sendSocketData(char* pbuff,unsigned int length);
public:
    CCVideoClient();
    ~CCVideoClient();
    void sendKeepAlivePacket();
    void startSocketConnect(CC_NetConnectInfo info);
};





#endif